Last month we announced seven new data fields in the Caselaw Access Project. Here are API calls to the cases endpoint that demonstrate how to sort on these fields. Note the query strings, especially the use of the minus sign (-) to reverse order.

All cases ordered by PageRank, a measure of significance, in reverse order, so the most significant come first:

?ordering=-analysis.pagerank.percentile

All cases sorted by word count, from longest to shortest:

?ordering=-analysis.word_count